﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Vit.CMS.Data" %>
<script runat="server">
    protected SelectList Sites
    {
        get
        {
            List<SelectListItem> sites = new List<SelectListItem>();
            foreach (string s in DataSources.Sites)
            {
                SelectListItem li = new SelectListItem();
                li.Text = li.Value = s;
                sites.Add(li);
            }
            return new SelectList(sites, "Value", "Text", Session["ManageSite"]);
        }
    }
</script>
        <div class="span-18">
            <h1>CMS Administration</h1>
        </div>
        <div class="span-4 prepend-top text-right">
            <% Html.RenderPartial("LogOnUserControl"); %>
        </div>
        <div class="span-4 prepend-top text-right">
            <span><%= Html.Localize("CurrentSite") %></span>
            <%= Html.DropDownList("sites", this.Sites) %>
        </div>
        <div class="clear">
            <% Html.RenderPartial("Menu"); %>
        </div>
